package com.taobao.api.request;

import com.taobao.api.internal.mapping.ApiField;
import com.taobao.api.TaobaoObject;
import java.util.Date;
import java.util.Map;

import com.taobao.api.ApiRuleException;
import com.taobao.api.BaseTaobaoRequest;
import com.taobao.api.internal.util.TaobaoHashMap;
import com.taobao.api.internal.util.json.JSONWriter;
import com.taobao.api.response.RdcAligeniusDistributionLogisticsCancelResponse;

/**
 * TOP API: taobao.rdc.aligenius.distribution.logistics.cancel request
 * 
 * @author top auto create
 * @since 1.0, 2018.07.25
 */
public class RdcAligeniusDistributionLogisticsCancelRequest extends BaseTaobaoRequest<RdcAligeniusDistributionLogisticsCancelResponse> {
	
	

	/** 
	* 参数
	 */
	private String param0;

	public void setParam0(String param0) {
		this.param0 = param0;
	}

	public void setParam0(CancelDistributionDto param0) {
		this.param0 = new JSONWriter(false,true).write(param0);
	}

	public String getParam0() {
		return this.param0;
	}

	public String getApiMethodName() {
		return "taobao.rdc.aligenius.distribution.logistics.cancel";
	}

	public Map<String, String> getTextParams() {		
		TaobaoHashMap txtParams = new TaobaoHashMap();
		txtParams.put("param0", this.param0);
		if(this.udfParams != null) {
			txtParams.putAll(this.udfParams);
		}
		return txtParams;
	}

	public Class<RdcAligeniusDistributionLogisticsCancelResponse> getResponseClass() {
		return RdcAligeniusDistributionLogisticsCancelResponse.class;
	}

	public void check() throws ApiRuleException {
	}
	
	/**
 * 参数
 *
 * @author top auto create
 * @since 1.0, null
 */
public static class CancelDistributionDto extends TaobaoObject {

	private static final long serialVersionUID = 8189852357127193893L;

	/**
		 * 物流公司编码
		 */
		@ApiField("logistics_company_code")
		private String logisticsCompanyCode;
		/**
		 * 物流公司名称
		 */
		@ApiField("logistics_company_name")
		private String logisticsCompanyName;
		/**
		 * 物流运单号
		 */
		@ApiField("mail_no")
		private String mailNo;
		/**
		 * 截配描述信息
		 */
		@ApiField("msg")
		private String msg;
		/**
		 * 子订单号
		 */
		@ApiField("oid")
		private Long oid;
		/**
		 * 截配操作时间
		 */
		@ApiField("operate_time")
		private Date operateTime;
		/**
		 * ERP截配单号
		 */
		@ApiField("out_id")
		private String outId;
		/**
		 * 退款单号
		 */
		@ApiField("refund_id")
		private Long refundId;
		/**
		 * 截配状态，1=截配成功
		 */
		@ApiField("status")
		private Long status;
		/**
		 * 主订单号
		 */
		@ApiField("tid")
		private Long tid;
	

	public String getLogisticsCompanyCode() {
			return this.logisticsCompanyCode;
		}
		public void setLogisticsCompanyCode(String logisticsCompanyCode) {
			this.logisticsCompanyCode = logisticsCompanyCode;
		}
		public String getLogisticsCompanyName() {
			return this.logisticsCompanyName;
		}
		public void setLogisticsCompanyName(String logisticsCompanyName) {
			this.logisticsCompanyName = logisticsCompanyName;
		}
		public String getMailNo() {
			return this.mailNo;
		}
		public void setMailNo(String mailNo) {
			this.mailNo = mailNo;
		}
		public String getMsg() {
			return this.msg;
		}
		public void setMsg(String msg) {
			this.msg = msg;
		}
		public Long getOid() {
			return this.oid;
		}
		public void setOid(Long oid) {
			this.oid = oid;
		}
		public Date getOperateTime() {
			return this.operateTime;
		}
		public void setOperateTime(Date operateTime) {
			this.operateTime = operateTime;
		}
		public String getOutId() {
			return this.outId;
		}
		public void setOutId(String outId) {
			this.outId = outId;
		}
		public Long getRefundId() {
			return this.refundId;
		}
		public void setRefundId(Long refundId) {
			this.refundId = refundId;
		}
		public Long getStatus() {
			return this.status;
		}
		public void setStatus(Long status) {
			this.status = status;
		}
		public Long getTid() {
			return this.tid;
		}
		public void setTid(Long tid) {
			this.tid = tid;
		}

}


}